package com.prs.crm.domain.cdxh;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;

/**
 * @author LanXiaoGang
 * @E-mail:lan9liang@163.com
 * @qq:7857553326
 * @version 创建时间：2010-12-3 下午04:02:12 简单说明
 */

@Entity
@Table(name = "cdxh_MaterialProduct")
public class MaterialProduct extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;

	/**
	 * 产品编号
	 */
	private String productCode;
	/**
	 * 产品名称
	 */
	private String productName;
	/**
	 * 产品颜色
	 */
	private String productColor;
	/**
	 * 产品规格
	 */
	private String productNorm;
	/**
	 * 包装方式
	 */
	private String productPackstyle;

	/**
	 * 比例
	 */
	private String productScal;
	/**
	 * 产品登记时间
	 */
	private Date productRegistDate;
	/**
	 * 提货时间
	 */
	private Date deliveryDate;
	/**
	 * 是否急单
	 */

	private String rushOrder;

	/**
	 * 产品数量
	 */
	private int productNum;

	/**
	 * 判断配料已经生产了好多
	 */
	@Column(columnDefinition = "Double(11,3) default '0.000'")
	private Double alreadyProduct;

	/**
	 * 判断这个配料单是不是第一次 默认”1“是第一次
	 */
	@Column(columnDefinition = "Integer(11) default '1'")
	private int firstYN;

	/**
	 * 剩余的数量
	 */
	@Column(columnDefinition = "Double(11,3) default '0.000'")
	private Double remainderNum;

	/**
	 * 新建计划单或者销售订单编号
	 */
	private String planOrOrderId;

	/**
	 * 制定状态 默认是1.当数值大于6的时候就不显示
	 * 
	 * @return
	 */
	@Column(columnDefinition = "Integer(11) default '1'")
	private int pLState;
	/**
	 * 判断是不是被打回来重新制定的
	 * 
	 * @return
	 */
	@Column(columnDefinition = "Integer(11) default '1'")
	private int backMakeState;
	/**
	 * 需要生产量
	 * 
	 * @return
	 */
	@Column(columnDefinition = "Double(11,3) default '0.000'")
	private Double needNum;

	/**
	 * 数量确定状态
	 * 
	 * @return
	 */
	@Column(columnDefinition = "Integer(11) default '1'")
	private int NumConfirmState;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getProductCode() {
		return productCode;
	}

	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getProductColor() {
		return productColor;
	}

	public void setProductColor(String productColor) {
		this.productColor = productColor;
	}

	public String getProductNorm() {
		return productNorm;
	}

	public void setProductNorm(String productNorm) {
		this.productNorm = productNorm;
	}

	public Date getProductRegistDate() {
		return productRegistDate;
	}

	public void setProductRegistDate(Date productRegistDate) {
		this.productRegistDate = productRegistDate;
	}

	public Date getDeliveryDate() {
		return deliveryDate;
	}

	public void setDeliveryDate(Date deliveryDate) {
		this.deliveryDate = deliveryDate;
	}

	public String getRushOrder() {
		return rushOrder;
	}

	public void setRushOrder(String rushOrder) {
		this.rushOrder = rushOrder;
	}

	public int getProductNum() {
		return productNum;
	}

	public void setProductNum(int productNum) {
		this.productNum = productNum;
	}

	public String getPlanOrOrderId() {
		return planOrOrderId;
	}

	public void setPlanOrOrderId(String planOrOrderId) {
		this.planOrOrderId = planOrOrderId;
	}

	public int getpLState() {
		return pLState;
	}

	public void setpLState(int pLState) {
		this.pLState = pLState;
	}

	public Double getAlreadyProduct() {
		return alreadyProduct;
	}

	public void setAlreadyProduct(Double alreadyProduct) {
		this.alreadyProduct = alreadyProduct;
	}

	public int getFirstYN() {
		return firstYN;
	}

	public void setFirstYN(int firstYN) {
		this.firstYN = firstYN;
	}

	public Double getRemainderNum() {
		return remainderNum;
	}

	public void setRemainderNum(Double remainderNum) {
		this.remainderNum = remainderNum;
	}

	public String getProductPackstyle() {
		return productPackstyle;
	}

	public void setProductPackstyle(String productPackstyle) {
		this.productPackstyle = productPackstyle;
	}

	public int getBackMakeState() {
		return backMakeState;
	}

	public void setBackMakeState(int backMakeState) {
		this.backMakeState = backMakeState;
	}

	public Double getNeedNum() {
		return needNum;
	}

	public void setNeedNum(Double needNum) {
		this.needNum = needNum;
	}

	public String getProductScal() {
		return productScal;
	}

	public void setProductScal(String productScal) {
		this.productScal = productScal;
	}

	public int getNumConfirmState() {
		return NumConfirmState;
	}

	public void setNumConfirmState(int numConfirmState) {
		NumConfirmState = numConfirmState;
	}

}
